package com.gopay.common.domain.rims;

import java.util.HashMap;
import java.util.Map;

import com.gopay.common.domain.BaseEntity;

/**
 * 风控确认接口参数
 * 
 * @RimsConfirmParas.java
 * @author MA HUAN
 * @2014-11-24 下午5:04:57 www.gopay.com.cn Inc.All rights reserved.
 */
public class RimsConfirmParas extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -2071277443546904299L;

    public enum ParaKey {
        /**
         * 风控对象客户号
         */
        CUST_NO,
        /**
         * 交易号
         */
        TRANS_ORDER_ID,
        /**
         * 交易状态码
         */
        TRANS_STATUS,
    }
    
    private Map<ParaKey, String> parameters = new HashMap<ParaKey, String>();

    public void putPara(ParaKey key, String value) {
        parameters.put(key, value);
    }

    public String getPara(ParaKey key) {
        return parameters.get(key);
    }

    /**
     * 深度复制参数项
     * 
     * @return
     */
    public Map<ParaKey, String> copyParas() {

        Map<ParaKey, String> ret = new HashMap<ParaKey, String>();
        ret.putAll(parameters);
        return ret;
    }
}
